package pe.com.bn.sach.domain;

/**
 * Bnchf23ExpIngrFamAdicId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf23ExpIngrFamAdicId implements java.io.Serializable {

	// Fields

	private Bnchf23ExpIngresoFamiliar bnchf23ExpIngresoFamiliar;
	private Bnchf59TipoRenta bnchf59TipoRenta;

	// Constructors

	/** default constructor */
	public Bnchf23ExpIngrFamAdicId() {
		bnchf23ExpIngresoFamiliar=new Bnchf23ExpIngresoFamiliar();
		bnchf59TipoRenta=new Bnchf59TipoRenta();
	}

	/** full constructor */
	public Bnchf23ExpIngrFamAdicId(
			Bnchf23ExpIngresoFamiliar bnchf23ExpIngresoFamiliar,
			Bnchf59TipoRenta bnchf59TipoRenta) {
		this.bnchf23ExpIngresoFamiliar = bnchf23ExpIngresoFamiliar;
		this.bnchf59TipoRenta = bnchf59TipoRenta;
	}

	// Property accessors

	public Bnchf23ExpIngresoFamiliar getBnchf23ExpIngresoFamiliar() {
		return this.bnchf23ExpIngresoFamiliar;
	}

	public void setBnchf23ExpIngresoFamiliar(
			Bnchf23ExpIngresoFamiliar bnchf23ExpIngresoFamiliar) {
		this.bnchf23ExpIngresoFamiliar = bnchf23ExpIngresoFamiliar;
	}

	public Bnchf59TipoRenta getBnchf59TipoRenta() {
		return this.bnchf59TipoRenta;
	}

	public void setBnchf59TipoRenta(Bnchf59TipoRenta bnchf59TipoRenta) {
		this.bnchf59TipoRenta = bnchf59TipoRenta;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf23ExpIngrFamAdicId))
			return false;
		Bnchf23ExpIngrFamAdicId castOther = (Bnchf23ExpIngrFamAdicId) other;

		return ((this.getBnchf23ExpIngresoFamiliar() == castOther
				.getBnchf23ExpIngresoFamiliar()) || (this
				.getBnchf23ExpIngresoFamiliar() != null
				&& castOther.getBnchf23ExpIngresoFamiliar() != null && this
				.getBnchf23ExpIngresoFamiliar().equals(
						castOther.getBnchf23ExpIngresoFamiliar())))
				&& ((this.getBnchf59TipoRenta() == castOther
						.getBnchf59TipoRenta()) || (this.getBnchf59TipoRenta() != null
						&& castOther.getBnchf59TipoRenta() != null && this
						.getBnchf59TipoRenta().equals(
								castOther.getBnchf59TipoRenta())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf23ExpIngresoFamiliar() == null ? 0 : this
						.getBnchf23ExpIngresoFamiliar().hashCode());
		result = 37
				* result
				+ (getBnchf59TipoRenta() == null ? 0 : this
						.getBnchf59TipoRenta().hashCode());
		return result;
	}

}